<link href="{:CSS}idangerous.swiper.css" rel="stylesheet" />
	<div id="wrapper" class="fn-clear">
		<!--导航 开始-->
		<include file='./Application/Home/View/public/Index_topMenu.html' />
		<!--导航 结束-->	

		<!--图片切换 开始-->
		<div id="banner">
			<div class="swiper-container">
				<div class="swiper-wrapper">
					<volist name='indexSlideList.lb1' id='listNow'>
						<div class="swiper-slide"><img src="{$listNow.pic}" alt=""></div>
			        </volist>
				</div>
				<div class="pagination"></div>
			</div>
			<div class="notice-text-box fn-left fn-clear">					
				<div class="column-title">
					<span>赛事信息</span>
					<a class="fn-right" target="_blank" href="{:U('Index/sslists')}">更多</a>
				</div>
				<div class="column-cont">
	                <volist name='indexList.IL_ssxx' id='listNow'>
						<li>
							<a class="fn-left" target="_blank" href="{:U('Index/news', array('id' => $listNow['id'], 'ori_id' => $listNow['pid']))}">
							{$listNow.title|msubstr=0, 34}
							</a>
							<span class="fn-left">{$listNow.times|date='m-d', ###}</span>
						</li>
	                </volist>
				</div>
			</div>
		</div>

		<div class="content notice-box mt20 fn-clear">
			<div class="notice-img-box fn-left fn-clear">
				<ul>
					<volist name='indexSlideList.lb4' id='listNow'>
						<li>
							<a class="notice-img fn-left" target="_blank" href="{:U('Index/lists', array('id' => 3))}">
								<cite><img src="{$listNow.pic}" alt=""></cite>
								<span class="fn-text-ovf">{$listNow.name}</span>
							</a>
						</li>
					</volist>
				</ul>
			</div>
		</div> 
		
		<!--系统外链 开始-->
		<div class="content systemlink-box mt20 fn-clear" id="wailian" >
				<volist name='indexSlideList.lb3' id='listNow'>
					<a class="fn-left" target="_blank" href='<notempty name="listNow.link">{$listNow.link}<else />javascript:;</notempty>'><img src="{$listNow.pic}" alt=""></a>
		        </volist>
		</div>
		<!--系统外链 结束 -->

		<!--底部版权 开始-->
		<include file='./Application/Home/View/public/Index_foot.html' />
		<!--底部版权 结束-->
	</div>

	<script>
	$(function(){
		$('#wailian').find('a').eq(0).attr('href','http://www.nies.net.cn')
		$('#wailian').find('a').eq(1).attr('href','http://www.moe.gov.cn')
		$('#wailian').find('a').eq(2).attr('href','https://www.tech.net.cn/web/index.aspx')
		$('#wailian').find('a').eq(3).attr('href','http://www.ahedu.gov.cn')
		$('#wailian').find('a').eq(4).attr('href','http://www.ahjky.com.cn')
		$('#wailian').find('a').eq(5).attr('href','http://www.wuhu.gov.cn')
	})
		var swiper = new Swiper('.swiper-container', {
  		  autoplay:{disableOnInteraction:false},
  		  pagination:'.pagination',
		  speed:1500,
		  loop:true
		});var slider;
		var headlineTimer;
		$(function () {
			//校园新闻，显示
			$("#content-0-0").show();
		    var nls = $('.nlitem');
		    autoHeadLine('content-0-0');
		    $('.min').on('click', function () {
		        headlineTimer && clearTimeout(headlineTimer);
		        var index = $(this).parent().index() + 1;
		        var old = $('.c110');
		        old.removeClass('c110');
		        $('.chide').removeClass('chide');
		        var t = nls.eq(index - 1);
		        t.addClass('c110');
		        $('.min:lt(' + index + ')').addClass('chide');
		        if (index == 5) {
		            $('.n-right').css('height', '295');
		        } else {
		            $('.n-right').css('height', '290');
		        }
		        $('.n-right').hide();
		        var content = $(this).attr('model');
		        $('#' + content).show();
		        autoHeadLine(content);
		    });

		    $('.n-right').mouseenter(function () {
		        // console.log('mouseenter');
		        headlineTimer && clearTimeout(headlineTimer);
		    });

		    $('.n-right').mouseleave(function () {
		        // console.log('mouseleave');
		        headlineTimer && clearTimeout(headlineTimer);
		        autoHeadLine($(this).attr('id'));
		    });

		    $('.home-news-arrow').on('click', function () {
		        headlineTimer && clearTimeout(headlineTimer);
		        $('.n-right').hide();
		        var content = $(this).attr('model');
		        $('#' + content).show();
		        autoHeadLine(content);
		    });

		    function autoHeadLine(id) {
		        headlineTimer = setTimeout(function () {
		            var docClass = '#' + id + ' .home-news-arrow-right';
		            if ($(docClass).length && $(docClass).length > 0) {
		                $(docClass).click();
		            }
		        }, 4000);
		    }

		    var tabindex = 0;
		    $('.tabs-item').on('click', function () {
		        var index = $(this).index();
		        if (tabindex == index) {
		            return;
		        }
		        tabindex = index;
		        $('.active').removeClass('active');
		        $(this).addClass('active');
		        if (index == 0) {
		            $('#item2').hide();
		            $('#item1').show();

		        } else {
		            $('#item1').hide();
		            $('#item2').show();
		        }

		    });
		});
	</script>